package com.camunda.workflow.controller.task.service;

import lombok.extern.slf4j.Slf4j;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.stereotype.Component;
/**
 * service task type : Delegate expression
 */
@Slf4j
@Component("doingRepair")
public class GotoRepair implements JavaDelegate {
    public void execute(DelegateExecution execution) throws Exception {
        log.info("开始上门修理");
        String currentActivityName = execution.getCurrentActivityName();
        log.info("当前活动名：" + currentActivityName);
        execution.setVariable("repairManName","王小满");
    }
}

